<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ui_Form.aspx.cs" Inherits="Private_Config_Groups_ui_Form" %>
<%@ Register TagPrefix="Flux" Namespace="Deepcode.Flux.Core.UI.Controls" Assembly="Deepcode.Flux.Core" %>
<html>
<head runat="server">
	<link href="../../../Asset/Style/GeneralStyle.css" rel="stylesheet" type="text/css" />
</head>
<body class="nopad">
<form id="form1" runat="server">
<Flux:HostTable runat="server">

<Flux:ValidationSummarySection runat="server" HeaderText="Please correct the following errors"/>
<Flux:Section runat="server" Title="Add/Edit User Group">
<Flux:ShadePadBox runat="server">
	<table cellspacing="0" cellpadding="5" border="0" width="500">
	<tr><td nowrap="nowrap">Group Name: <%=Required%></td>
		<td><asp:TextBox Runat="server" ID="GroupName" Width="200px" style="width:200px" MaxLength="200"/></td>
	</tr>
	</table>
</Flux:ShadePadBox>
</Flux:Section>

<Flux:CollapseSection runat="server" Title="Permissions Granted to this Group">
<Flux:ShadePadBox runat="server">
	<asp:Repeater ID="PermissionGroups" Runat="server" OnItemDataBound="PermissionGroups_ItemDataBound">
		<ItemTemplate>
		<br/>
		<asp:Label ID="PermissionGroupTitle" Runat="server" Font-Bold="True"/><br/>
		<asp:CheckBoxList Runat="server" ID="PermissionsList"/>
		</ItemTemplate>
	</asp:Repeater>
</Flux:ShadePadBox>
</Flux:CollapseSection>

<Flux:Section runat="server">
<Flux:PadBox CssClass="Pad5Button" runat="server">
	<asp:Button runat="server" ID="btnSave" Text="Save" OnClick="btnSave_Click"/>&nbsp;&nbsp;&nbsp;
	<asp:Button runat="server" ID="btnCancel" Text="Cancel" OnClick="btnCancel_Click" CausesValidation="False"/>
</Flux:PadBox>
</Flux:Section>

<!-- Validators -->
<asp:RequiredFieldValidator Runat="server" ControlToValidate="GroupName" ErrorMessage="You must specify the name of this user group" Display="None"/>

</Flux:HostTable>
</form>
</body>
</html>
